function main() {
    Java.perform(function x() {
        // public static String a(File arg3, int arg4)
        console.log("hooooooookkkkkkkkkkkkk")
        var ByteString = Java.use("com.android.okhttp.okio.ByteString");
        Java.use("com.xiaomi.gamecenter.channel.a.d").a.overload("java.io.File","int").implementation = function (p1,p2){
            console.log(p2)
            var ret = this.a(p1,p2)
            console.log(ret)
            return ret; 
         }
        //  public static byte[] a(byte[] arg3)
        Java.use("com.xiaomi.gamecenter.channel.a.d").a.overload('[B').implementation = function (p1){
            console.log(p1)
            var ret = this.a(p1)
            console.log("j.p1:", ByteString.of(p1).hex())
            console.log("j.ret:", ByteString.of(ret).hex())
            return ret
         }
    })
  }
  
  
  setImmediate(main)


  //frida -U com.miquwan.sgzz.mi -l sgzz.js



